package com.shilan.dllo.wangyi.fragment;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.shilan.dllo.wangyi.R;
import com.shilan.dllo.wangyi.activity.PcActivity;

/**
 * Created by dllo on 15/10/22.
 */
public class PcFragment extends Fragment implements View.OnClickListener {

   private LinearLayout PcDengLu;


    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view =inflater.inflate(R.layout.activity_pc,null);
        PcDengLu = (LinearLayout) view.findViewById(R.id.PcDengLu);

        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        PcDengLu.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.PcDengLu:
                Intent intent = new Intent();
                intent.setClass(getContext() , PcActivity.class);
                startActivity(intent);
                getActivity().finish();
                break;
        }
    }
}
